package su.myspringbootprojects.springsecuritylearn.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

/**
 * Класс Roles
 * <p/>
 * Entity, моделирующая роль
 * <p/>
 *
 * @author petr.mikhailin
 * created 02.07.2024 18:46
 */
@Entity
@Getter
@Setter
public class Roles {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(unique = true)
    private String roleName;
}
